// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.chimi.dto.BarCommentDto;
import com.liuxinlong.modules.dao.BarCommentDao;
import com.liuxinlong.modules.entity.BarComment;
import com.liuxinlong.modules.mapper.BarCommentMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年7月7日
 */
@Service
public class BarCommentDaoImpl extends ServiceImpl<BarCommentMapper, BarComment> implements BarCommentDao {

    @Override
    public List<BarComment> pageBarCommentList(Map<String, Object> queryParam) {
        return baseMapper.pageBarCommentList(queryParam);
    }

    @Override
    public int getBarCommentCount(Map<String, Object> queryParam) {
        return baseMapper.getBarCommentCount(queryParam);
    }

    @Override
    public List<BarComment> pageBarCommentSubList(Map<String, Object> queryParam) {
        return baseMapper.pageBarCommentSubList(queryParam);
    }

    @Override
    public int getBarCommentSubCount(Map<String, Object> queryParam) {
        return baseMapper.getBarCommentSubCount(queryParam);
    }

    @Override
    public int getAllBarCommentSubCount(String commentId, String cardId) {
        return baseMapper.getAllBarCommentSubCount(commentId,cardId);
    }

    @Override
    public List<BarComment> queryCardComments(String cardId) {
        return baseMapper.queryCardComments(cardId);
    }

    @Override
    public void updateCommentStatus(String id, int status) {
        baseMapper.updateCommentStatus(id, status);
    }

    @Override
    public List<BarCommentDto> pageBarCommentManageList(Map<String, Object> queryParam) {
        return baseMapper.pageBarCommentManageList(queryParam);
    }

    @Override
    public int getBarCommentManageCount(Map<String, Object> queryParam) {
        return baseMapper.getBarCommentManageCount(queryParam);
    }
}
